package org.zizi.dao;

import org.zizi.db.EasySql;

public class BaseDao
{
	protected EasySql esql;
	
	protected long getGeneratedId(String table) throws Exception
	{
		String sql = "select get_generated_id(?) from dual";
		return esql.query(Long.class, sql, table);
	}
	
	public void setEasySql(EasySql esql)
	{
		this.esql = esql;
	}
}
